package com.cium.aqie.dataType

/**
 * @Function:
 * @Author: aqie
 * @Date: 2019/8/27 9:45
 */
val arrayOfInt: IntArray = intArrayOf(1,3,5,7)
val arrayOfChar: CharArray = charArrayOf('H', 'e','l','l','o','W','o','r','l','d')
val arrayOfString: Array<String> = arrayOf("Hello","World")

fun main(args: Array<String>) {
    println(arrayOfInt.size)
    // 遍历数组
    for (int in arrayOfInt) {
        print(int)
    }
    println()

    println(arrayOfChar.joinToString())
    println(arrayOfInt.slice(1..2))
}